resstream.htmlHTMLudog”πùΔ§πùΔ§ÅÅï Monkeybread Realbasic plugin - Documentation - ResStream

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class ResStream

class, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Allows you to access a ressourcefork in it's binary representation.
Notes: Usefull to copy the resourcefork faster from one file to another.

CanWrite as boolean

property, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: whether the stream was opened for writing.
Notes: Even if you open a file for write you may still not be allowed to write if the permissions of the file don't allow you to write.

Close

method, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Does nothing.
Function: Closes this object.
Notes: The destructor closes a ResStream if you don't close it.

EOF as boolean

property, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> false.
Function: Returns true if you are at the end of the stream.

Length as integer

property, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns the current length of the stream.
Notes: You can truncate the stream by setting this property.

Position as integer

property, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: -> 0.
Function: Returns current position.
Notes: You can set the current file stream position using this property.

Read(amount as Integer) as string

method, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Reads bytes into a string.
Example:
dim s as string
...
s=b.read(5)

Write(data as string)

method, Ressourcefork Fr, 30. Aug 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Does nothing.
Function: Writes bytes from a string to file.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ